
public class Button {

	int x, y, width, height;
	String text;
	
	//Checks to make sure that the x and y location are somewhere on the button
	public boolean contains(int x1, int y1) {
		if (x<=x1 && x1<=(x+width) && y<=y1 && y1<=(y+height)) {
			return true;
		}
		else {
			return false;
		}
	}
	
	
	//Getters and Setters
	public int getX() {
		return x;
	}
	
	public void setX(int x1) {
		x = x1;
	}
	
	public int getY() {
		return y;
	}
	
	public void setY(int y1) {
		y = y1;
	}
	
	public int getWidth() {
		return width;
	}
	
	public void setWidth(int width1) {
		width = width1;
	}
	
	public int getHeight() {
		return height;
	}
	
	public void setHeight(int height1) {
		height = height1;
	}
	
}
